namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 故障信息点位详情
    /// </summary>
    [SugarTable("fault_subclass_details")]
    public class FaultSubclassDetails : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "production_line")]
        public string ProductionLine { get; set; }

        /// <summary>
        /// 工位代号
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// DB块
        /// </summary>
        [SugarColumn(ColumnName = "db_block")]
        public int DbBlock { get; set; }

        /// <summary>
        /// 组序号
        /// </summary>
        [SugarColumn(ColumnName = "byte_no")]
        public int ByteNo { get; set; }

        /// <summary>
        /// 故障唯一标识
        /// </summary>
        [SugarColumn(ColumnName = "item_no")]
        public int ItemNo { get; set; }

        /// <summary>
        /// 故障bit
        /// </summary>
        [SugarColumn(ColumnName = "fault_no")]
        public int FaultNo { get; set; }

        /// <summary>
        /// 中文
        /// </summary>
        [SugarColumn(ColumnName = "context_zh")]
        public string ContextZh { get; set; }

        /// <summary>
        /// 英文
        /// </summary>
        [SugarColumn(ColumnName = "context_en")]
        public string ContextEn { get; set; }

        /// <summary>
        /// 西班牙语
        /// </summary>
        [SugarColumn(ColumnName = "context_es")]
        public string ContextEs { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }
    }
}